package com.example.controller;
import com.example.common.Result;
import com.example.common.ResultUtils;
import com.example.dto.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/*
@description:数据脱敏
@ClassName DesensitizationController
@author chen
@create 2025-07-13 22:06
@Version 1.0
*/
@RestController
@RequestMapping("/desensitization")
public class DesensitizationController
{
    @GetMapping("/getUser")
    public Result<User> getUser()
    {
        User user = new User();
        user.setId("001");
        user.setName("chen");
        user.setPhone("15991488967");
        user.setEmail("15991488967@163.com");
        user.setIdCard("420123432112121332");
        user.setPassword("123456");
        user.setAddress("陕西省西安市漕河泾开发区");
        user.setBankCard("6226090211114567");
        return ResultUtils.success(user);
    }
}
